package com.junqi.msg.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class UserPullMsgEvent extends ApplicationEvent {

    private final String roomId;
    private final Long lastMsgTime;
    private final String userId;

    public UserPullMsgEvent(Object source, String roomId, Long lastMsgTime, String userId) {
        super(source);
        this.roomId = roomId;
        this.lastMsgTime = lastMsgTime;
        this.userId = userId;
    }
}
